:root {
  --primary-color: #5b6abf;
  --secondary-color: #9c64a6;
  --accent-color: #6a5acd;
  --light-color: #e6e6fa;
  --success-color: #4caf50;
  --error-color: #f44336;
  --text-color: #2c3e50;
  --white: #ffffff;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  padding: 0 10%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid #fff;
  transition: all 0.3s ease;
}

.header:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.logo {
  font-size: 28px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--white);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  letter-spacing: 1px;
}

.navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header .navigation ul li {
  float: left;
  position: relative;
}

.header .navigation ul li a {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  padding: 22px 20px;
  display: block;
  transition: all 0.3s ease;
}

.header .navigation ul li a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.header .navigation ul li ul {
  position: absolute;
  right: 0;
  width: 220px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  display: none;
  overflow: hidden;
}

.header .navigation ul li ul li a {
  color: var(--text-color);
  padding: 12px 20px;
  font-size: 14px;
}

.header .navigation ul li ul li a:hover {
  background-color: var(--light-color);
  color: var(--primary-color);
}

.header .navigation ul li:hover > ul {
  display: initial;
  animation: fadeIn 0.3s ease-out;
}

#toggle,
.header label {
  display: none;
  cursor: pointer;
}

.menu {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

@media (max-width: 950px) {
  .header label {
    display: initial;
  }

  .header {
    padding: 15px 10%;
  }

  .header .navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-color);
    display: none;
    border-radius: 0 0 12px 12px;
  }

  .header .navigation ul li {
    width: 100%;
  }

  .header .navigation ul li a {
    padding: 12px 20px;
  }

  .header .navigation ul li ul {
    position: relative;
    width: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.1);
  }

  .header .navigation ul li ul li a {
    padding-left: 30px;
  }

  #toggle:checked ~ .navigation {
    display: block;
    animation: slideDown 0.4s ease-out;
  }
}

/* Body and Background Styles */
body {
  font-family: "Poppins", sans-serif;
  background: #e6e6fa; /* Pastel purple */
  margin: 0;
  padding: 0;
  padding-top: 80px;
  min-height: 100vh;
  color: var(--text-color);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Main Container */
.container {
  max-width: 800px;
  width: 90%;
  margin: 20px auto;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 25px;
  font-family: "Montserrat", sans-serif;
}

/* Activity Sections */
.activity-section {
  margin-bottom: 30px;
  background-color: rgba(230, 230, 250, 0.3);
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid var(--secondary-color);
}

.activity-section h2 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-size: 22px;
}

.instructions {
  background-color: rgba(175, 243, 255, 0.2);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Activity Forms */
.exercise {
  margin-bottom: 25px;
}

.exercise h3 {
  color: var(--accent-color);
  margin-bottom: 10px;
}

.question {
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.7);
}

.question label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.question input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: "Poppins", sans-serif;
}

.question select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: "Poppins", sans-serif;
}

.dialogue {
  background-color: rgba(230, 230, 250, 0.5);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.dialogue p {
  margin: 5px 0;
}

/* Buttons */
.buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#resetBtn {
  background-color: var(--accent-color);
}

/* Results */
.results {
  margin-top: 30px;
  padding: 20px;
  background-color: rgba(230, 230, 250, 0.5);
  border-radius: 8px;
  display: none;
}

.results h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.score {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin: 20px 0;
}

.correct {
  color: var(--success-color);
}

.incorrect {
  color: var(--error-color);
}

.feedback {
  margin-top: 10px;
  padding: 8px;
  border-radius: 4px;
}

.correct-answer {
  background-color: rgba(76, 175, 80, 0.1);
  border-left: 3px solid var(--success-color);
}

.wrong-answer {
  background-color: rgba(244, 67, 54, 0.1);
  border-left: 3px solid var(--error-color);
}

/* Congratulations Message */
.message {
  text-align: center;
  padding: 20px;
  margin: 20px 0;
  border-radius: 8px;
  font-weight: 600;
  font-size: 18px;
}

.success-message {
  background-color: rgba(76, 175, 80, 0.2);
  border: 2px solid var(--success-color);
  color: var(--success-color);
}

.improve-message {
  background-color: rgba(255, 193, 7, 0.2);
  border: 2px solid #ffc107;
  color: #ff9800;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 20px;
  }

  .buttons {
    flex-direction: column;
  }
}
